package com.kbplus.demo.data.permission.config;

/**
 * @author kbplus
 * @version v1.0
 * @date 2022-05-13 11:21:13
 */
public enum DataPermissionEnum {

    ALL("1","拥有所有数据权限"),
    NONE("2","未拥有数据权限"),
    DEPT("3","拥有部门权限"),
    DEPT_CHILDREN("4","拥有部门权限及子权限"),
    POST("5","拥有职位权限"),
//    POST_CHILDREN("6","拥有职位权限及子权限"),
    OWN("7","拥有自身权限"),
    ;

    private String code;
    private String desc;

    DataPermissionEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
